import {lazy} from "react"
import {Navigate} from "react-router-dom"
const Login = lazy(()=>import("../pages/login"))
const Home = lazy(()=>import("../pages/home"))
const Pull = lazy(()=>import("../pages/pull"))
const Push  = lazy(()=>import("../pages/push"))
const Antpull = lazy(()=>import("../pages/antpull"))
const routerConfig = [
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/pull",
        element:<Pull></Pull>
    },
    {   
        path:"/push",
        element:<Push></Push>
    },
    {
        path:"/antpull",
        element:<Antpull></Antpull>
    },
    {
        path:"/",
        element:<Navigate to="/login"></Navigate>
    }

]
export default routerConfig